/*
   Copyright (c) 2023 李伟国
   learner-platform is licensed under Mulan PSL v2.
   You can use this software according to the terms and conditions of the Mulan PSL v2. 
   You may obtain a copy of Mulan PSL v2 at:
               http://license.coscl.org.cn/MulanPSL2 
   THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.  
   See the Mulan PSL v2 for more details. 
*/

package cn.platform.service;

import cn.platform.entity.Problem;
import cn.platform.entity.ProblemSet;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface IProblemSetService extends IService<ProblemSet> {
    // 题目集中题目列表

    /**
     * 获得对应题目集中的题目列表
     * @param setId 题目集id
     * @return 题目列表
     */
    List<Problem> getProblemListBySetId(Long setId);

    // 题目集删除题目

    /**
     * 从题目集中删除题目
     * @param problemSet 题目集与题目
     * @return 结果
     */
    boolean deleteProblemBySetId(ProblemSet problemSet);
    // 题目集增加题目

    /**
     * 从题目集中增加题目
     * @param problemSet 题目集与题目
     * @return 结果
     */
    boolean addProblemBySetId(ProblemSet problemSet);
}
